import { createSlice } from '@reduxjs/toolkit'

const aaaSlice = createSlice({
    name: 'aaa',
    initialState: {
      bbb: 0
    },
    reducers: {
      increment: state => {
        state.bbb += 1
      },
      decrement: state => {
        state.bbb -= 1
      },
      incrementByAmount: (state, action) => {
        state.bbb += action.payload
      }
    }
  })

  export const { increment, decrement, incrementByAmount } = aaaSlice.actions
  
  export const aaaReducer = aaaSlice.reducer